<?php
/**
 * @author christian
 * @copyright 2011
 * @abstract carga de todo el itinerario que es parte de un tour del itenario del tour
 */
 


$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDTourGeneral/CTourTableDraw.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("CResumeServicesTable.php");
include_once("$ruta/star.php");
include_once("$ruta/view/CDrawMenuTour.php");

$items=array("Nuevo Tour"=>"CSmallDefinePack.php","Nuevo paquete"=>"CTourEdit.php?codigo=159&default=2","Ver paquetes"=>"/viventura/MDTour/","Otra"=>"g");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";
CDrawMenuTour::getInstance()->DrawDivAdEnd();


$maintable="restaurant"; 
$growtable="pack_has_tour";


if (!isset($_POST['updated'])) {$_POST['updated'] = "NULL"; }
$updated = $_POST['updated'];
if($updated!="NULL"){echo "El paquete $updated fue actualizado";}
else{echo "";}

if (!isset($_GET['codigo'])) {$_GET['codigo'] = "NULL"; }
$id = $_GET['codigo'];

$columnas = array("ResPackTour"=>"Id", "DesSer"=>"Servicio", "CanIteRec"=>"Cantidad", "PriUni"=>"Precio", "CommSer"=>"Descripción");
//$columnas=array("idRest"=>"Id","NomRes"=>"Nombre","TypRes"=>"Tipo","DirRes"=>"Dirección","TelRes"=>"Telefono","MovRes"=>"Teléfono móvil","WebSitRes"=>"Sitio Web");
    //CTourTableDraw::getInstance()->DrawTable($title,$maintable,$columnas);
CResumeServicesTable::getInstance()->DrawTable("Servicios de los restaurantes",$maintable,$growtable,$columnas,$id);

echo "<p align='right'>";
CDrawPageReg::getInstance()->DrawButton("Añadir servicio", "CGuideServicio.php");
echo "</p>";

?>